using System;
using System.Collections.Generic;
using Admin.NET.Application.Entity;
using Admin.NET.Core;

namespace Admin.NET.Application.SeedData;

/// <summary>
/// 实体种子数据
/// </summary>
public class TestSeedData : ISqlSugarEntitySeedData<Test>
{
	/// <summary>
	/// 种子数据
	/// </summary>
	/// <returns></returns>
	public IEnumerable<Test> HasData()
	{
		yield return new Test
		{
			Id = 252885263003800L,
			Name = "张三",
			Age = 20,
			CreateTime = DateTime.Parse("2022-04-12 00:00:00")
		};
		yield return new Test
		{
			Id = 252885263003801L,
			Name = "李四",
			Age = 30,
			CreateTime = DateTime.Parse("2022-04-12 00:00:00")
		};
	}
}
